home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
Games
/
magic_balls.swf
/
scripts
/
DefineButton2_156
/
BUTTONCONDACTION on(keyPress Left).as
next >
Wrap
Text File
|
2010-11-09
|
769b
|
28 lines
on(keyPress "<Left>"){
nowshooting = eval("_root.ball" add _root.totalballs);
if(80 < getProperty(nowshooting, _X))
{
setProperty(nowshooting, _X, getProperty(nowshooting, _X) - 25);
setProperty(_root.nextball, _X, getProperty(nowshooting, _X));
setProperty(_root.arrow, _X, getProperty(nowshooting, _X));
_root.startposition -= 25;
if(_root.imdoingback < 1)
{
tellTarget("_root.char")
{
gotoAndStop("left");
play();
}
wheelturn = 1;
while(wheelturn < 9)
{
tellTarget("_root.wheel" add wheelturn)
{
gotoAndPlay(7);
}
wheelturn++;
}
}
}
}